package demo.service.impl;

import demo.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class CityServiceB{

    @Autowired
    private CityService cityService;

    @Transactional
    public void method(){
        System.out.println("CityServiceB.methodB");
        cityService.insertCityB();
        //throw new RuntimeException();
    }
}

